import Sequelize from 'sequelize'
import sequelize from '../../../database/index'

module.exports = sequelize.define('internal_type',{
    id:{
        type: Sequelize.UUIDV4,
        defaultValue: Sequelize.UUIDV4,
        unique: true,
        allowNull: false,
        primaryKey:true
    },
    internal_type_name :{
        type: Sequelize.STRING,
        allowNull: false
    },
    status:{
        type:Sequelize.INTEGER,
        defaultValue: 0,
        allowNull: false
    },
    memo: {
        type: Sequelize.STRING,
        allowNull: false
    },
    created_man: {
        type: Sequelize.STRING,
        allowNull: false
    }
},{
    freezeTableName:false,
    tableName: 'internal_type',
    updatedAt:'updated_at',
    createdAt:'created_at'
});